<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jQuery.js"></script>
    <style>
        #ggb{
            height: 100px;
            width: 100px;
            background-color: orange;
            position: absolute;
        }
    </style>
</head>
<body>
    <button id="go">点我开始go</button>
    <button id="stop">点我stop</button>
    <div id="ggb">????</div>
    <script>
        $(function(){
            $("#go").click(function(){
                $("#ggb").slideUp(1000).delay(800).animate({left:'500px'},5000);
            })
            $("#stop").click(function(){
                $("#ggb").stop();
            })
        })
    </script>
</body>
</html>